package tjs.study.notes.dotest.mongo.service;


import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * Created by Nicky.Tang on 2021/12/9 9:32 下午
 *
 * @since 02.12.10
 */
@Document(collection = "user_mongo")
public class UserMongo {
    @Id
    private String id;
    private String name;
    private Integer amount;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }
}
